#include "mythread.h"
#include <QDebug>

MyThread::MyThread(QObject* parent) : QThread(parent)
{

}

void MyThread::run()
{
    qDebug() << "我是子线程";
    for(int i = 0; i < 12345 * 20; i++){
        qDebug() << "耗时工作" << i;
    }
}
